<template>
  <div class="app-container">
    <div class="page-filter mb10 fl">
      <el-row>
        <el-col :span="24">
          <el-tabs v-model="active" type="card" @tab-click="handleTabs">
            <el-tab-pane label="月度统计" name="1" />
            <el-tab-pane label="预算成本分析" name="2" />
          </el-tabs>
        </el-col>
        <el-col v-if="active === '1'" :span="24">
          <Monthly :info="info" />
        </el-col>
        <el-col v-if="active === '2'" :span="24">
          <BCWP :info="info" />
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import BCWP from './components/purchase/bcwp'
import Monthly from './components/purchase/monthly'

export default {
  name: '',
  components: { Monthly, BCWP },
  inject: ['app'],
  data() {
    return {
      active: '1',
      info: {}
    }
  },
  created() {
  },
  methods: {
    handleTabs(e) {
    }
  }
}
</script>
